package com.oa.system.dto;

import com.oa.system.entity.ApplyApproval;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("审批添加对象")
@Data
public class ApplyApprovalAddDTO {

    public ApplyApprovalAddDTO(){
        this.approvalPlanId = Long.valueOf(0);
    }

    @ApiModelProperty("申请ID")
    @NotNull(message = "申请ID不能为空")
    private String applyId;

    @ApiModelProperty("审批ID")
    @NotNull(message = "审批ID不能为空")
    private String approvalProcessId;

    @ApiModelProperty("审批名称")
    @NotNull(message = "审批名称不能为空")
    private String applyApprovalName;

    @ApiModelProperty("方案ID")
    @NotNull(message = "方案ID不能为空")
    private Long approvalPlanId;

    @ApiModelProperty("申请人ID")
    @NotNull(message = "申请人ID不能为空")
    private String approvalUserId;
}
